local jimou_active = fk.CreateSkill{
  name = "rmt__jimou_active",
}

Fk:loadTranslationTable{
  ["rmt__jimou_active"] = "冀谋",
}

jimou_active:addEffect("active", {
  target_num = 1,
  card_filter = function(self, player, to_select, selected)
    return #selected == 0 and table.contains(player:getCardIds("h"), to_select)
  end,
  target_filter = function(self, player, to_select, selected, selected_cards)
    if self.must_give == true and #selected_cards < 1 then return end
    return #selected == 0 and Fk:currentRoom().current and Fk:currentRoom().current == to_select
  end,
  feasible = function(self, player, selected, selected_cards)
    if self.must_give == true then
      return #selected == 1 and #selected_cards == 1
    else
      return #selected == 1
    end
  end,
})

return jimou_active